package com.doyutu.seed.common.exception;

import lombok.Data;

/**
 * @author DoyuTu
 * @version 0.0.1
 * spring-boot-project-seed
 */
@Data
public class BadCheckException extends RuntimeException {

    private static final long serialVersionUID = 2209750353224467437L;
    /**
     * 错误字段名
     */
    private String fieldName;
    /**
     * 错误字段信息
     */
    private String fieldValue;

    public BadCheckException() {
        super();
    }

    public BadCheckException(String message) {
        super(message);
    }

    public BadCheckException(String message, Throwable cause) {
        super(message, cause);
    }

    public BadCheckException(Throwable cause) {
        super(cause);
    }

    public BadCheckException(String fieldName, String fieldValue) {
        super();
        this.fieldName = fieldName;
        this.fieldValue = fieldValue;
    }
}
